//If on air 
if(status==2){
    grounded=0;
    vsp=-8;
    j_counter++;
    if(j_counter==1) vsp=-8;
}

//Disabling jump
if(!grounded){
    if(j_counter>=2){    
        keyboard_clear(vk_up);
        keyboard_set_map(vk_up,"");
    } 
} else{
     keyboard_set_map(vk_up,vk_up);
     j_counter=0;    
}

//Run
/*if(r_counter>=2){
    hsp=hsp*2;
    if(keyboard_check_released(vk_right)){
         r_counter=0;
         hsp=hsp/2;
         }
}
